﻿
Imports osi.service.argument

'test purpose, it's not bypass, but do exactly as bypass
Namespace encrypt
    Public Class bypass2
        Implements encryptor

        Public Shared ReadOnly instance As bypass2

        Shared Sub New()
            instance = New bypass2()
        End Sub

        Private Sub New()
        End Sub

        Public Shared Function create(ByVal parameter As var, ByRef o As encryptor) As Boolean
            o = instance
            Return True
        End Function

        Public Function decrypt(ByVal key() As Byte,
                                ByVal i() As Byte,
                                ByRef o() As Byte) As Boolean Implements encryptor.decrypt
            o = i
            Return True
        End Function

        Public Function encrypt(ByVal key() As Byte,
                                ByVal i() As Byte,
                                ByRef o() As Byte) As Boolean Implements encryptor.encrypt
            o = i
            Return True
        End Function
    End Class
End Namespace
